<html>
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16"></script>
<script>
    onload = function () {
        var app = new Vue({
            el: '.shop',
            data: {
                goods: [
                    {
                        name: '金币',
                        price: 500,
                    },
                    {
                        name: '铲子',
                        price: 1000,
                    },
                    {
                        name: '小铲子',
                        price: 100,
                    }
                ]
            }
        })
    }
</script>

<head>
    <style>
        @font-face {
            font-family: AlibabaPuHuiTi-2-55-Regular;
            src: url(https://puhuiti.oss-cn-hangzhou.aliyuncs.com/AlibabaPuHuiTi-2/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff2) format('woff2');
        }

        html {
            font-family: 'AlibabaPuHuiTi-2-55-Regular', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
            width: max-content;
            height: 0;
            background: white;
            max-width: 400px;
            min-width: 150px;
        }

        p {
            padding: 10px;
            word-wrap: break-word;
            white-space: pre-wrap;
            font-size: 13px;
        }

        .shop {
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            font-size: 12px;
            font-weight: 500;
            color: #333;
            line-height: 1.5;
            min-width: 300px;
            overflow: hidden;
        }

        .item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: max-content;
            height: 40px;
            margin: 0 10px;
        }

        .title {
            flex: 1;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 600;
            color: #fff;
            background-image: url(https://pic.imgdb.cn/item/66656e745e6d1bfa05aee62b.jpg);
            background-size: 120px 120px;
        }
    </style>
</head>

<body>
    <div class="shop">
        <div class="title">疯狂戴夫的商店</div>
        <div class="item" v-for="(i, index) in goods" :key="index">
            <div class="name">{{ i.name }}</div>
            <div class="price">{{ i.price }}</div>
        </div>
    </div>
</body>

</html>